<?php 
	class Commentaires extends Eloquent {
		protected $table = 'commentaires';
    	public $timestamps = false;
    	protected $primaryKey = "comment_id";

    	public function user() {
    		return $this->belongsTo('User');
    	}

    	public function scopeNews($query, $id) {
    		$query->whereNewsId($id);
    	}
    }